-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PECO-1803] Databricks sqlalchemy is split into this folder #1
Conversation
README.md
Outdated
|
||
```shell | ||
pip install databricks-sql-connector[sqlalchemy] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be databricks-sql-sqlalchemy
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jackyhu-db Fixed it
README.md
Outdated
|
||
```shell | ||
pip install databricks-sql-connector[databricks_sqlalchemy] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be directly installed pip install databricks_sqlalchemy
.github/workflows/integration.yml
Outdated
- name: Checkout Dependency Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: jprakash-db/databricks-sql-python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not use personal repo and it should be databricks/databricks-sqlalchemy
.github/workflows/integration.yml
Outdated
with: | ||
repository: jprakash-db/databricks-sql-python | ||
path: databricks_sql_python | ||
ref : jprakash-db/PECO-1803 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a temporary fix to check the integration tests are passing or not. Once the main split gets published I need to modify this
.github/workflows/integration.yml
Outdated
python -m pip install --upgrade pip | ||
pip3 install poetry | ||
python3 -m venv venv | ||
ls databricks_sql_python/databricks_sql_connector_core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why ls databricks_sql_python/databricks_sql_connector_core
, it does not exist
.github/workflows/integration.yml
Outdated
- name: Build Dependency Package | ||
run: | | ||
source venv/bin/activate | ||
pip3 install databricks_sql_python/databricks_sql_connector_core/dist/*.whl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should install via pip install requirements.txt
which has the package databricks_sql_connector_core
as the dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But currently the databricks_sql_connector_core is not a published library and that is why all these changes are made just for testing. Once we decide how to publish I will change the integration.yml file
README.md
Outdated
|
||
```shell | ||
pip install databricks-sql-connector[alembic] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, we should use pip install databricks_sqlalchemy
, do not refer to databricks-sql-connector
, which may confuse the user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
README.tests.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this file?
pyproject.toml
Outdated
pytest-dotenv = "^0.5.2" | ||
|
||
[tool.poetry.urls] | ||
"Homepage" = "https://github.com/databricks/databricks-sql-python" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be https://github.com/databricks/databricks-sqlalchemy
?
src/databricks_sqlalchemy/_ddl.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, you change the package name, it was databricks.sqlalchemy
, please make sure it is backward compatible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You change the package name, it was databricks.sqlalchemy
, please make sure it is backward compatible. Use databricks_sqlalchemy
will break existing clients
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume you have not changed any source file under src/databricks/sqlalchemy
…)" This reverts commit 76a3c28.
Related Links
Main split of databricks_sql_python - databricks/databricks-sql-python#417
Description
databricks_sql_python is split into the core and databricks sqlalchemy part, the databricks sqlalchemy part is moved into this repo for controlling its release events
Tasks Completed
How to Test
Testing can be done using the pytest library in the same as it is mentioned in the README.md file